import styled from "styled-components";

import GedantuijianBg from '../../../../../assets/images/bg_detail.bb32b2d1.jpg'
import playBg from '../../../../../assets/images/play.png'
export const GedantuijianBox = styled.div`
  position: relative;
  height: 532px;
  background: url(${GedantuijianBg}) 50% 0 repeat-x;

  overflow: hidden;
  .title{
    height: 114px;
    font-size: 24px;
    line-height: 114px;
    text-align: center;
    h2{
      letter-spacing: 20px;
    }
  }
  .fenlei{
    height: 50px;
    text-align: center;
    font-size: 15px;
    span{
      margin: 0 24px;
      
      &:hover{
        color: #31c27c;
        cursor: pointer;
      }
      &.active{
        color: #31c27c;
      }
    }
  }
  /* 覆盖 antd 样式 */
  .ant-carousel .slick-dots li.slick-active button{
    background-color: #3ac27c;

  }
  .ant-carousel .slick-dots li button{
    background-color:#999999 ;
  }
  .ant-carousel .slick-dots-bottom{
    bottom: -44px;
  }

  /* 上一个 下一个 */
  &:hover .pre{
      left:0;
  }
  &:hover .next{
      right:0;
  }
  .toggle{
    transition: all .4s;
    position: absolute;
    width: 79px;
    height: 108px;
    background: rgba(0,0,0,.05);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    &:hover{
      background: rgba(0,0,0,.1);
      cursor: pointer;
    }
  }
  .pre{
    
    left: -108px;
  }
  .next{
    right: -108px;
  }
  /* 覆盖  antd */
  .anticon{
    font-size: 50px;
    color: #3ac27c;
  }
  /* 轮播图的内容 */
  .banner_main{
    
    display: flex !important;
    height: 280px;
    width: 100% ;
    >div{
      width: 224px;
    }
    justify-content:space-between;
    .img_info{
      position: relative;
      /* display: flex;
      justify-content: center;
      align-items: center; */
      width: 224px;
      height: 224px;
      overflow: hidden;
      &:hover{
        cursor: pointer;
        .img_info_mask{
          opacity: .2;
        }
        img{
          transform: scale(1.1);
        }
        .img_info_play{
          opacity: 1;
          background: url(${playBg}) center/70px no-repeat;
        }
      }
      img{
        width: 224px;
        height: 224px;
        transition: all .4s;

      }   
      .img_info_mask{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #000000;
        opacity: 0;
        transition: opacity .4s;
      }
      .img_info_play{
        /* transform-origin: center; */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 70px;
        height: 70px;
        background: url(${playBg}) center/40px no-repeat;
        opacity: 0;
        transition: all .4s;
      }
    }

    .name{
      margin-top: 15px;
      font-size: 14px;
      color: #000000;
      &:hover{
        color: #3ac27c;
        cursor: pointer;
      }
    }
    .playcount{
      color: #999999;
    }
  }
`